import request from '@/api/index'

/**
 * 分页获取本人历史场次记录
 * @param {*} data 
 * @returns 
 */
export function queryVideoDetailByID(data) {
    return request({
        url: '/video/queryVideoDetailByID',
        method: 'POST',
        data
    })
}
/**
 * 获取当前视频观看记录
 * @param {*} data 
 * @returns 
 */
export function queryCurrentVideoWatchRecord(data) {
    return request({
        url: '/userWatchRecord/queryCurrentVideoWatchRecord',
        method: 'POST',
        data
    })
}
/**
 * 添加观看记录
 * @param {*} data 
 * @returns 
 */
export function addWatchRecord(data) {
    return request({
        url: '/userWatchRecord/addWatchRecord',
        method: 'POST',
        data
    })
}
